Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
min-promise
Advanced tools
Small and Clean Promise 100% compliant with Promises/A+ Spec
npm i min-promise
Support Both ES2015 Promise
and Promises/A+
100% compliant with Promises/A+ Spec, and listed in implements
Check all tests in promises-aplus-tests
Support basic thenable in Promises/A+ Spec
Support ES2015 promise
new Promise()
in ES2015Promise.all()
in ES2015Promise.race()
in ES2015Support .caught
like .catch
for ES3 support, inspired by bluebird
jQuery style or CommonJS Promises/A
Deferred object
Promise is subset of Deferred
var $ = require('min-promise/jquery') // export `Deferred` and `when`
// $.Deferred
var dfd = $.Deferred()
dfd.done(function(v1, v2) {
console.log(v1) // 1
console.log(v2) // 2
})
Promise.delay(50).then(function() {
dfd.resolve(1, 2)
})
// $.when
var d1 = $.Deferred()
var d2 = $.Deferred()
var d3 = $.Deferred()
$.when(d1, d2, d3).done(function(v1, v2, v3) {
console.log([v1, v2, v3]) // [undefined, 'abc', 123]
})
d1.resolve()
d2.resolve('abc')
d3.resolve(123)
setTimeout
in promise style
Promise.delay(ms)
.delay(ms)
FAQs
Small and Clean Promise 100% compliant with Promises/A+ Spec
The npm package min-promise receives a total of 11 weekly downloads. As such, min-promise popularity was classified as not popular.
We found that min-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.